package com.lcxw.hxzbcommon.common.qiniu;

public final class RoomConfig {
    static final String APIHTTP_SCHEME = "http://";
    private static String VERSION = "2.1.0";
    static final String API_USER_AGENT = String.format("pili-sdk-java/%s %s %s/%s", VERSION, System.getProperty("java.version"), System.getProperty("os.name"), System.getProperty("os.arch"));
    static String APIHost = "pili.qiniuapi.com";
    static String RTCAPIHost = "rtc.qiniuapi.com";

    private static final String SnapshotPlayDomain = "pili-snapshot.52yuze.com/";

    public static final String ACCESS_KEY = "R_vK-UAK7gyJk0MoFA1LR86AL-d0oScMCXKlHsWG";
    public static final String SECRET_KEY = "IEYrXJybzme9p_IAQo6lJhdgVdoVW2Vu3ocPZxxe";
    public static final String HUB = "ywpd";

    public static final String RTC_APPID = "ewyygp4tw";
    private static final String PULL_URL_PREX = "rtmp://pili-live-rtmp.52yuze.com/";
    private static final String PUSH_URL_PREX = "rtmp://pili-publish.52yuze.com/";

    public static String getPushUrl(long roomId){
        return PUSH_URL_PREX + HUB + "/" + roomId;
    }

    public static String getPullUrl(long roomId){
        return PULL_URL_PREX + HUB + "/" + roomId;
    }

    public static String getSnapshot(long roomId){return APIHTTP_SCHEME + SnapshotPlayDomain + HUB  + "/" + roomId + ".jpg";}

}
